// 多个泛型参数的函数
(() => {
  function swap<K, V>(a: K, b: V): [K, V] {
    return [a, b];
  }
  const arr = swap<string, number>("abc", 100.2345);
  console.log(arr[0].length, arr[1].toFixed(1));
})();
